TryGet<T>(IPdfDict,PdfName,T,Boolean,Boolean) Method
In This Topic
Tries to get the value associated with the specified key, Returns true if value exists and can be converted to a , resolves a PDF reference if needed. Note! The method does not resolve reference if is IPdfRef, otherwise the method resolves the reference and returns *actual* object.
Syntax
'Declaration
Public Overloads Shared Function TryGet(Of As IPdfObject)( _
ByVal As IPdfDict, _
ByVal As PdfName, _
ByRef As , _
ByRef As System.Boolean, _
ByVal As System.Boolean _
) As System.Boolean
public static System.bool TryGet<>(
IPdfDict ,
PdfName ,
out ,
out System.bool ,
System.bool
)
where T: IPdfObject
Parameters
- dict
- The current dictionary.
- key
- The key identifying the value.
- value
- OUT: The value.
- isNull
- OUT: Indicates whether the value is PDF null.
- addWarning
- Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if errors occur.
Type Parameters
- T
Return Value
Returns true if no errors occur.
See Also